/**************************************************************************
 *                                                                        *
 *         Copyright (c) 2007 by Sunplus mMedia Inc.                      *
 *                                                                        *
 *  This software is copyrighted by and is the property of Sunplus        *
 *  mMedia Inc. All rights are reserved by Sunplus mMedia Inc.  This      *
 *  software may only be used in accordance with the corresponding        *
 *  license agreement. Any unauthorized use, duplication, distribution,   *
 *  or disclosure of this software is expressly forbidden.                *
 *                                                                        *
 *  This Copyright notice MUST not be removed or modified without prior   *
 *  written consent of Sunplus mMedia Inc.                                *
 *                                                                        *
 *  Sunplus mMedia Inc. reserves the right to modify this software        *
 *  without notice.                                                       *
 *                                                                        *
 *  Sunplus mMedia Inc.                                                   *
 *  19-1, Innovation First Road, Science-Based Industrial Park,           *
 *  Hsin-Chu, Taiwan, R.O.C.                                              *
 *                                                                        *
 **************************************************************************/

#ifndef __SDCON_H__
#define __SDCON_H__

//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------

//-------------------------------------
//sdascic.c
//-------------------------------------
//----- SD-card function ---------------
#define SD_Mode          0       //00=Mem,01=IO
#define SD_BusFlow       0       //0/1=DMA/PIO
#define SD_TotalSect     (SD_CylindNumb * SD_HeadNumb *1)

#define SD_Reset         0x2450
#define SD_Config        0x2451
#define SD_TrigSignal	0x2452
#define SD_Status	     0x2453
#define SD_State	     0x2454
#define SD_DataLengthL   0x2455
#define SD_DataLengthH   0x2456
#define SD_WaitRspTime	0x2457
#define SD_WaitCRCTime	0x2458
#define SD_PIODataBufTX	0x2459
#define SD_PIODataBufRX	0x245A

#define K_1BitBus   0
#define K_4BitBus   1
//-------------------------------------
//sdcore.c
//-------------------------------------

#endif /*__SDCON_H__*/